package com.sskj.cndragon.bean;

import com.sskj.cndragon.R;
import com.sskj.common.base.App;

import java.util.ArrayList;
import java.util.List;

public class RecordListBean {
    private List<RecordBean> list;

    public List<RecordBean> getList() {
        if (list == null) {
            return new ArrayList<>();
        }
        return list;
    }

    public void setList(List<RecordBean> list) {
        this.list = list;
    }

    public class RecordBean {


        /**
         * id : 1
         * swiftNo : 20190423113255286
         * selfStockUserId : 191
         * selfUsername : null
         * selfTel : 111
         * otherStockUserId : null
         * otherUsername : null
         * otherTel : null
         * coinType : 4
         * coinNum : 10
         * chargeType : 2
         * poundage : null
         * createTime : 1555990376000
         * timestamp : 1555990383000
         */

        private String id;
        private String swiftNo;
        private String selfStockUserId;
        private String selfUsername;
        private String selfTel;
        private String otherStockUserId;
        private String otherUsername;
        private String otherTel;
        private int coinType;
        private int coinNum;
        private int chargeType;
        private String poundage;
        private long createTime;
        private long timestamp;

        public String getId() {
            return id == null ? "" : id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getSwiftNo() {
            return swiftNo == null ? "" : swiftNo;
        }

        public void setSwiftNo(String swiftNo) {
            this.swiftNo = swiftNo;
        }

        public String getSelfStockUserId() {
            return selfStockUserId == null ? "" : selfStockUserId;
        }

        public void setSelfStockUserId(String selfStockUserId) {
            this.selfStockUserId = selfStockUserId;
        }

        public String getSelfUsername() {
            return selfUsername == null ? App.INSTANCE.getString(R.string.appMorenyonghu)  : selfUsername;
        }

        public void setSelfUsername(String selfUsername) {
            this.selfUsername = selfUsername;
        }

        public String getSelfTel() {
            return selfTel == null ? "" : selfTel;
        }

        public void setSelfTel(String selfTel) {
            this.selfTel = selfTel;
        }

        public String getOtherStockUserId() {
            return otherStockUserId == null ? "" : otherStockUserId;
        }

        public void setOtherStockUserId(String otherStockUserId) {
            this.otherStockUserId = otherStockUserId;
        }

        public String getOtherUsername() {
            return otherUsername == null ? App.INSTANCE.getString(R.string.appMorenyonghu) : otherUsername;
        }

        public void setOtherUsername(String otherUsername) {
            this.otherUsername = otherUsername;
        }

        public String getOtherTel() {
            return otherTel == null ? "" : otherTel;
        }

        public void setOtherTel(String otherTel) {
            this.otherTel = otherTel;
        }

        public int getCoinType() {
            return coinType;
        }

        public void setCoinType(int coinType) {
            this.coinType = coinType;
        }

        public int getCoinNum() {
            return coinNum;
        }

        public void setCoinNum(int coinNum) {
            this.coinNum = coinNum;
        }

        public int getChargeType() {
            return chargeType;
        }

        public void setChargeType(int chargeType) {
            this.chargeType = chargeType;
        }

        public String getPoundage() {
            return poundage == null ? "" : poundage;
        }

        public void setPoundage(String poundage) {
            this.poundage = poundage;
        }

        public long getCreateTime() {
            return createTime;
        }

        public void setCreateTime(long createTime) {
            this.createTime = createTime;
        }

        public long getTimestamp() {
            return timestamp;
        }

        public void setTimestamp(long timestamp) {
            this.timestamp = timestamp;
        }
    }


}
